/************************************************************************************************
 * test examples of 100 interesting program in C
 * test 017.c
 * Drink Division
 ***********************************************************************************************/

#include <stdio.h>

/*
 *
 */

int main()
{
	int i = 0, j = 0, k = 0;
	for (i = 1; i < 10; i++)
	for (j = i+1; j < 10; j++)
	for (k = j+1; k < 10; k++)
	{
		if ((i*j + i*k + j*k) == (i*j*k))
		{
			printf("%d, %d, %d persons drink these 3 bottles separately\n", i, j, k);
		}
	}
}

